<%@ Page EnableEventValidation="false" EnableViewState="false" Language="vb" AutoEventWireup="false" CodeFile="product.aspx.vb" Inherits="pages_Products_Product"
    MasterPageFile="~/pages/default.master"
    Title="Product Details"
    ValidateRequest="False"
%>
<%@ Register src="usercontrols/UCProductSelect.ascx" tagname="UCProductSelect" tagprefix="uc" %>

<asp:Content ID=t    runat=server ContentPlaceHolderID=above>
    <uc:UCProductSelect ID=ddCurrent runat=server  BlankItem="-- New Product --"/>
</asp:Content>

<asp:Content ID="c" ContentPlaceHolderID="body" runat="server">
    <asp:ValidationSummary ID="vs" runat="server" ShowSummary="true" EnableClientScript="true" DisplayMode="BulletList" />

    <uc:FormBegin ID="fb" runat="server" />
        <uc:Checkbox ID="chkProductIsActive" runat="server" Required="false" Label="Published" Text="Publish To Website" />
        <uc:Dropdown ID="ddProductTypeId" Runat="server" Required="true" Label="Type" AutoPostback=true />

        <uc:Textbox  ID="txtProductName" runat="server" Required="true" Label="Name" />
        <uc:Textbox  ID="txtProductNameChineseSimplified" runat="server" Required="false" Label="Name (Chinese-Simp)" Visible=false />
        <uc:Textbox  ID="txtProductNameChineseTraditional" runat="server" Required="false" Label="Name (Chinese-Trad)" Visible=false />

        <uc:Dropdown ID=ddProductBelongsToProductId runat=server Label="Belongs To" DataTextField="ProductNameAndContents" DataValueField="ProductId"  />
        <uc:Dropdown ID="ddProductPaypalButtonId" Runat="server" Required="false" Label="Pricing" DataTextField="NameAndPrice" DataValueField="ButtonId" />
        <uc:Dropdown ID="ddProductSpeakerId" Runat="server" DataTextField="SpeakerName" DataValueField="SpeakerId" Required=true  Label="Speaker" />
        <uc:Dropdown ID="ddProductSpeaker2Id" Runat="server" DataTextField="SpeakerName" DataValueField="SpeakerId" Required=false  Label="Speaker #2" />
        <uc:Dropdown ID="ddProductLocationId" Runat="server" DataTextField="LocationName" DataValueField="LocationId" Required=false  Label="Location" />
        <uc:Dropdown ID="ddProductLanguageId" Runat="server" DataTextField="LanguageName" DataValueField="LanguageId" Required=true  Label="Language" />
        <uc:Textbox ID=txtCreated runat=server Required=true Label="Created" TextMode=Date />

        <uc:Textarea  ID="txtProductKeywords" runat="server" Required="false" Label="Keywords" Height=60px />
        <uc:Textarea  ID="txtProductKeywordsChineseSimplified"  runat="server" Required="false" Label="Keywords (Chinese-Simp)" Height=60px Visible=false />
        <uc:Textarea  ID="txtProductKeywordsChineseTraditional" runat="server" Required="false" Label="Keywords (Chinese-Trad)" Height=60px Visible=false />

        <uc:Textarea  ID="txtProductDescription" runat="server" Required="false" Label="Description" Height=150px />
        <uc:Textarea  ID="txtProductDescriptionChineseSimplified" runat="server" Required="false" Label="Description (Chinese-Simp)" Height=75px Visible=false  />
        <uc:Textarea  ID="txtProductDescriptionChineseTraditional" runat="server" Required="false" Label="Description (Chinese-Trad)" Height=75px Visible=false />

        <uc:Textbox  ID="txtAmazon"     runat="server" Required="false" Label="Amazon" Width=100 />
        <uc:Textbox  ID="txtSmashwords" runat="server" Required="false" Label="Smashwords" Width=100 />
        <uc:Textbox  ID="txtCreatespace" runat="server" Required="false" Label="Createspace" Width=100 />
        <uc:Textbox  ID="txtCreatespace2" runat="server" Required="false" Label="2nd Book" Width=100 />
        <uc:Textbox  ID="txtCreatespace3" runat="server" Required="false" Label="3rd Book" Width=100 />


        <uc:FormButtonsBegin ID="fbb" runat="server" />
            <asp:button id="btnSave"    runat="server" text="Update" causesvalidation="True"  />
            <asp:button id="btnDelete"  runat="server" text="Delete" causesvalidation="False" OnClientClick="return confirm('Delete this Product?')" />
            <asp:button id="btnCancel"  runat="server" text="Back" causesvalidation="False" OnClientClick="window.back()" />
        <uc:FormButtonsEnd   ID="fbe" runat="server" />
        
    <uc:FormEnd ID="fe" runat="server" />
    
</asp:Content>